<template>
	<view>
      <view class="data-top">
      	<u-steps :list="numList"  mode="number" :current="num"></u-steps>
      </view>
	  
	  <view class="data-tit">
	  	请输入车牌号
	  </view>
	  <f-plate @getReceive='getPlate'></f-plate>
	  
	  <view class="row mt-3">
	  	<text class="txt">行驶证所有人姓名</text>
		<input class="inputs" type="text" placeholder="个人或者单位" />
	  </view>
	<view class="row">
		<text class="txt">行驶证编号</text>
			<input style="width: 350rpx;" type="number" placeholder="行驶证副页右下方13位编号" />
	</view>
	<view class="row">
			<text class="txt">交强险生效日期</text>
			<text class="txt">选择日期</text>
	</view>
	<view class="row">
			<text class="txt">交强险失效效日期</text>
			<text class="txt">选择日期</text>
	</view>
	
	<view @click="getStep" class="next-step">
		下一步
	</view>
	
	
	
	</view>
</template>

<script>
	import fPlate from '@/components/f-plate/index.vue'
	export default {
		components:{fPlate},
		
		data(){
			return{
				platelist:'',
				numList: [{
					id:1,
					name: '填写信息'
				}, {
					id:2,
					name: '上传图片'
				}, {
					id:3,
					name: '填写地址'
				}, {
					id:4,
					name: '提交'
				}, ],
			}
		},
		created() {
			// return 
		},
		methods:{ 
			selectPlate(){
				this.show = true
			},
			getPlate(e){
				console.log(e,'车牌号数据')
				this.platelist = e
			},
			valChange(e){
				if(this.plTitle.length>=8){
					return
				}
				if(this.plTitle.length <1){
					this.plTitle = ''
				}
				this.plTitle += e
				console.log(this.plTitle)
			},
			backspace(){
				if(this.plTitle.length) this.plTitle = this.plTitle.substr(0, this.plTitle.length - 1);
			},
			//下一步
			getStep(){
				uni.navigateTo({url:'./uploadImg'})
			}
		}
	}
</script>

<style lang="scss">
 .data-top{
	  width: 100%;
	  height: 175rpx;
	  background: #F1F5F8;
	  padding-top: 35rpx;
  }
  .data-tit{
	  width: 700rpx;
	  height: 40rpx;
	  font-size: 35rpx;
	  font-weight: bold;
	  line-height: 40rpx;
	  margin:  40rpx auto;
	  display: flex;
	 
	  justify-content: space-between;
	  align-items: center;
  }
  .box{
	  width: 100%;
	  height: 100rpx;
	  padding: 0 40rpx;
	  display: flex;
	  align-items: center;
	  .plate-num{
		  width: 76rpx;
		  height: 95rpx;
		  border: 1px solid #C0C0C0;
		  border-radius: 10rpx;
		  margin-right: 10rpx;
		  display: flex;
		  align-items: center;
		  justify-content: center;
		  font-size: 32rpx;
		  font-weight: bold;
	  }
	  .plate-nums{
		  width: 76rpx;
		  height: 95rpx;
		  border: 1px solid #5B97CC;
		  border-radius: 10rpx;
		  display: flex;
		   flex-direction: column;
		  align-items: center;
		  justify-content: center;
		  color: #5B97CC;
		  font-size: 18rpx;
	  }
	.data-plate{
		  width: 160rpx;
		  height: 95rpx;
		  border: 1px solid #5B97CC;
		  border-radius: 10rpx;
		  display: flex;
		  align-items: center;
		  margin-right: 30rpx;
		  .data-tits{
			  // flex: 1;
			  width: 50%;
			  height: 80%;
			  border-right:1px solid #C0C0C0;
			  display: flex;
			  align-items: center;
			  justify-content: center;
			  font-size: 32rpx;
			  font-weight: bold;
		  }
		  .data-titt{
			  width: 50%;
			  height: 80%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 32rpx;
			font-weight: bold;
		  }
	}
  }

.row{
	height: 90rpx;
	width: 100%;
	border-bottom: 1px solid #F4F5F6;
	display: flex;
     align-items: center;
	 justify-content: space-between;
	 padding: 0 20rpx;
	 // margin-top: 30rpx;
	 .txt{
		 font-size: 28rpx;
		 font-weight: bold;
	 }
	 .inputs{
		 width: 200rpx;
	 }
	 
}

.next-step{
	width: 680rpx;
	height: 90rpx;
	border-radius: 30rpx;
	background: #CDCDCD;
	color: #FFFFFF;
	font-size: 32rpx;
    text-align: center;
	line-height: 90rpx;
	margin: 30rpx auto;
}
</style>
